package com.yonyou.brigade.rtpnr.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 设置超标审批人接口
 */
@XmlRootElement(name = "ExceedStandardApproval_1_0")
public class ExceedStandardApproval {

    private Traveler[] travelers;

    private ApproveAuditor[] approveAuditors;

    @XmlElementWrapper(name = "Travelers")
    @XmlElement(name = "Traveler")
    public Traveler[] getTravelers() {
        return travelers;
    }

    public void setTravelers(Traveler[] travelers) {
        this.travelers = travelers;
    }

    @XmlElementWrapper(name = "ApproveAuditors")
    @XmlElement(name = "ApproveAuditor")
    public ApproveAuditor[] getApproveAuditors() {
        return approveAuditors;
    }

    public void setApproveAuditors(ApproveAuditor[] approveAuditors) {
        this.approveAuditors = approveAuditors;
    }

    /**
     * 出差人信息
     */
    @XmlRootElement(name = "Traveler")
    public static class Traveler {
        /**
         * 登录差旅账号
         */
        private String account;
        /**
         * 员工工号
         */
        private String staffNum;

        @XmlElement(name = "Account")
        public String getAccount() {
            return account;
        }

        @XmlElement(name = "StaffNum")
        public String getStaffNum() {
            return staffNum;
        }

        public void setAccount(String account) {
            this.account = account;
        }

        public void setStaffNum(String staffNum) {
            this.staffNum = staffNum;
        }
    }

    /**
     * 审批人信息
     */
    @XmlRootElement(name = "ApproveAuditor")
    public static class ApproveAuditor {
        /**
         * 登录差旅账号
         */
        private String account;
        /**
         * 员工工号
         */
        private String staffNum;
        /**
         * 审批优选级
         */
        private String approvePriority;

        @XmlElement(name = "Account")
        public String getAccount() {
            return account;
        }

        @XmlElement(name = "StaffNum")
        public String getStaffNum() {
            return staffNum;
        }

        @XmlElement(name = "ApprovePriority")
        public String getApprovePriority() {
            return approvePriority;
        }

        public void setAccount(String account) {
            this.account = account;
        }

        public void setStaffNum(String staffNum) {
            this.staffNum = staffNum;
        }

        public void setApprovePriority(String approvePriority) {
            this.approvePriority = approvePriority;
        }
    }

}
